package com.study.example.gameserver.socket.handler;

import com.sparrow.socket.tcp.init.TcpServerInitializer;
import io.netty.channel.Channel;
import io.netty.channel.ChannelPipeline;

public class GameServerInitializer extends TcpServerInitializer<Channel> {

    private GameServerHandler gameServerHandler;

    @Override
    protected void initChannel(ChannelPipeline pipeline, Channel channel) {
        pipeline.addLast(gameServerHandler);
    }

    public void setGameServerHandler(GameServerHandler gameServerHandler) {
        this.gameServerHandler = gameServerHandler;
    }
}
